# -*- mode: python -*-

Import( "env" )

import os

def check_visual_sdl( filename ):
    return env[ "sdl" ] != 0
# check_visual_sdl

filter_map = {
    "visual_sdl.c": check_visual_sdl,
    }

srcs = []
for f in os.listdir( "." ):
    if os.path.isfile( f ) and f.endswith( ".c" ):
        if f in filter_map:
            if filter_map[ f ]( f ):
                srcs.append( f )
        else:
            srcs.append( f )

env.Library( "mc930", srcs )

env.Append( LIBPATH=[ "#src" ], LIBS=[ "m" ] )
